package com.wql.aop01.service.controller;

import com.wql.aop01.service.annotion.WqlAnnotion;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/11 20:58
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("list")
    @WqlAnnotion("list")
    public String list(){
        System.out.println("查询");
        return "list";
    }
    @PostMapping("save")
    @WqlAnnotion("save")
    public String save(){
        System.out.println("添加");
        return "save";
    }
}
